package com.quectel.core.module.ai.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 布控名单库
 *
 * @author rananxin
 * @email: ryan.ran@quectel.com
 * @date 2021-11-24 19:13:28
 */
@Data
@Schema
public class AiControlLibDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
     * 小区id
     */
    @Schema(description = "小区id")
    private Long villageId;

    /**
     * 库类型 1人员库 2车辆库
     */
    @Schema(description = "库类型 1人员库 2车辆库")
    @NotNull
    @Range(min = 1, max = 2)
    private Byte type;

    /**
     * 名称
     */
    @Schema(description = "名称")
    @NotBlank
    @Length(min = 1, max = 80)
    private String name;

    /**
     * 状态 0未布控 1布控中
     */
    @Schema(description = "状态 0未布控 1布控中")
    private Byte status;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     *
     */
    @Schema(description = "")
    private Date createTime;

    /**
     *
     */
    @Schema(description = "")
    private String editor;

    /**
     *
     */
    @Schema(description = "")
    private Date editTime;

    /**
     *
     */
    @Schema(description = "")
    private String creator;

    /************非数据库字段 start ************/
    @Schema(description = "应用列表")
    private List<AiLibApplicationDto> applications;
    /************非数据库字段 end **************/
}
